using System;
namespace CommandLib.Base
{
	public class DBTypeHelper
	{
		public short ChangeToDBType(ushort val)
		{
			short result;
			if (val > 32767)
			{
				result = (short)(-(short)(val - 32767));
			}
			else
			{
				result = (short)val;
			}
			return result;
		}
	}
}
